package cn.iocoder.yudao.module.infra.controller.admin.codeincrement.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - code自增号新增/修改 Request VO")
@Data
public class CodeIncrementSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9026")
    private Long id;

    @Schema(description = "key表名或者业务名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "key表名或者业务名不能为空")
    private String bizKey;

    @Schema(description = "自增的数字", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "自增的数字不能为空")
    private Integer inrValue;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "更新人")
    private String updator;

}